package com.bky.jdbc;

import org.springframework.jdbc.core.PreparedStatementSetter;

import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * Created by shipeilei on 2017/5/26.
 */
public class IPreparedStatementSetter implements PreparedStatementSetter{
    private int[] types ;
    private Object[] param;


    public IPreparedStatementSetter(int[] types,Object[] param){
        this.types = types;
        this.param = param;
    }
    @Override
    public void setValues(PreparedStatement ps) throws SQLException {
        SQLUtil.bindParameters(ps, types, param);
    }
}
